a = [1, 3, 5, 7, 9]
b = [2, 4, 6, 8, 10]


def merge_two_array(a, b):
    c = []
    i = 0
    j = 0
    while i < len(a) and j < len(b):
        if a[i] < b[j]:
            c.append(a[i])
            i += 1
        else:
            c.append(b[j])
            j += 1

    while i < len(a):
        c.append(a[i])
        i += 1
    while j < len(b):
        c.append(b[j])
        j += 1
    return c


print("排序结果:", merge_two_array(a, b))
